"use strict";
exports.__esModule = true;
exports.AvatorGenerator = void 0;
var AvatorGenerator = /** @class */ (function () {
    function AvatorGenerator() {
    }
    AvatorGenerator.prototype.generatorRandomAvator = function () {
        var topTypeOptions = [];
        topTypeOptions.push('NoHair', 'Eyepatch', 'Hat', 'Hijab', 'Turban', 'WinterHat1', 'WinterHat2', 'WinterHat3', 'WinterHat4', 'LongHairBigHair', 'LongHairBob', 'LongHairBun', 'LongHairCurly', 'LongHairCurvy', 'LongHairDreads', 'LongHairFrida', 'LongHairFro', 'LongHairFroBand', 'LongHairNotTooLong', 'LongHairShavedSides', 'LongHairMiaWallace', 'LongHairStraight', 'LongHairStraight2', 'LongHairStraightStrand', 'ShortHairDreads01', 'ShortHairDreads02', 'ShortHairFrizzle', 'ShortHairShaggyMullet', 'ShortHairShortCurly', 'ShortHairShortFlat', 'ShortHairShortRound', 'ShortHairShortWaved', 'ShortHairSides', 'ShortHairTheCaesar', 'ShortHairTheCaesarSidePart');
        var accessoriesTypeOptions = [];
        accessoriesTypeOptions.push('Blank', 'Kurt', 'Prescription01', 'Prescription02', 'Round', 'Sunglasses', 'Wayfarers');
        var facialHairTypeOptions = [];
        facialHairTypeOptions.push('Blank', 'BeardMedium', 'BeardLight', 'BeardMagestic', 'MoustacheFancy', 'MoustacheMagnum');
        var facialHairColorOptions = [];
        facialHairColorOptions.push('Auburn', 'Black', 'Blonde', 'BlondeGolden', 'Brown', 'BrownDark', 'Platinum', 'Red');
        var clotheTypeOptions = [];
        clotheTypeOptions.push('BlazerShirt', 'BlazerSweater', 'CollarSweater', 'GraphicShirt', 'Hoodie', 'Overall', 'ShirtCrewNeck', 'ShirtScoopNeck', 'ShirtVNeck');
        var eyeTypeOptions = [];
        eyeTypeOptions.push('Close', 'Cry', 'Default', 'Dizzy', 'EyeRoll', 'Happy', 'Hearts', 'Side', 'Squint', 'Surprised', 'Wink', 'WinkWacky');
        var eyebrowTypeOptions = [];
        eyebrowTypeOptions.push('Angry', 'AngryNatural', 'Default', 'DefaultNatural', 'FlatNatural', 'RaisedExcited', 'RaisedExcitedNatural', 'SadConcerned', 'SadConcernedNatural', 'UnibrowNatural', 'UpDown', 'UpDownNatural');
        var mouthTypeOptions = [];
        mouthTypeOptions.push('Concerned', 'Default', 'Disbelief', 'Eating', 'Grimace', 'Sad', 'ScreamOpen', 'Serious', 'Smile', 'Tongue', 'Twinkle', 'Vomit');
        var skinColorOptions = [];
        skinColorOptions.push('Tanned', 'Yellow', 'Pale', 'Light', 'Brown', 'DarkBrown', 'Black');
        var hairColorTypes = [];
        hairColorTypes.push('Auburn', 'Black', 'Blonde', 'BlondeGolden', 'Brown', 'BrownDark', 'PastelPink', 'Platinum', 'Red', 'SilverGray');
        var hatColorOptions = [];
        hatColorOptions.push('Black', 'Blue01', 'Blue02', 'Blue03', 'Gray01', 'Gray02', 'Heather', 'PastelBlue', 'PastelGreen', 'PastelOrange', 'PastelRed', 'PastelYellow', 'Pink', 'Red', 'White');
        var clotheColorOptions = [];
        clotheColorOptions.push('Black', 'Blue01', 'Blue02', 'Blue03', 'Gray01', 'Gray02', 'Heather', 'PastelBlue', 'PastelGreen', 'PastelOrange', 'PastelRed', 'PastelYellow', 'Pink', 'Red', 'White');
        function getRandomParams(arr) {
            return arr[Math.floor(Math.random() * arr.length)]; // 0-1  长度  0.9 * [] 
        }
        return "https://avataaars.io/?accessoriesType=" + getRandomParams(accessoriesTypeOptions) + "&avatarStyle=Circle&clotheColor=" + getRandomParams(clotheColorOptions) + "&clotheType=" + getRandomParams(clotheTypeOptions) + "&eyeType=" + getRandomParams(eyeTypeOptions) + "&eyebrowType=" + getRandomParams(eyebrowTypeOptions) + "&facialHairColor=" + getRandomParams(facialHairColorOptions) + "&facialHairType=" + getRandomParams(facialHairTypeOptions) + "&hairColor=" + getRandomParams(hairColorTypes) + "&hatColor=" + getRandomParams(hatColorOptions) + "&mouthType=" + getRandomParams(mouthTypeOptions) + "&skinColor=" + getRandomParams(skinColorOptions) + "&topType=" + getRandomParams(topTypeOptions);
    };
    return AvatorGenerator;
}());
exports.AvatorGenerator = AvatorGenerator;
new AvatorGenerator().generatorRandomAvator(); // ?
